package com.app.designpatternslearn.behavior.observerpattern

import com.app.designpatternslearn.behavior.observerpattern.code.OneObserver
import com.app.designpatternslearn.behavior.observerpattern.code.Subject
import com.app.designpatternslearn.behavior.observerpattern.code.ThreeObserver
import com.app.designpatternslearn.behavior.observerpattern.code.TwoObserver

fun main() {

    val subject = Subject()

    val oneObserver = OneObserver(subject)

    val twoObserver = TwoObserver(subject)

    val threeObserver = ThreeObserver(subject)

    subject.notifyAllObservers()

}